Repository navigation
test(desktop): keep the preview signer test valid on Linux CI - #1455
Merged
jonathan308 merged 1 commit intoOct 15, 2026
Merged
jonathan308 merged 1 commit into
jonathan308 merged 1 commit into
Conversation
The desktop frontend job runs npm test on Ubuntu, where /usr/bin/codesign does not exist. Backend.connect() then fails verification with ENOENT and reports the runtime as missing, so the assertion that the unsigned preview backend yields state 'error' failed on every CI run after the preview packaging commit. Assert the platform's outcome while keeping the security assertions on every platform: the unsigned binary is never executed (no connection.json) and installing over the bundled API is still rejected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
had a problem deploying
to
benchmarks
October 13, 2026 22:29 — with
GitHub Actions
Error
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 13, 2026
Merged
Merged
Merged
This was referenced Oct 14, 2026
Merged
jonathan308
merged commit Oct 15, 2026
ef1667e
into
codex/desktop-mac-preview-20261012
31 of 33 checks passed
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The base branch
codex/desktop-mac-preview-20261012fails the Desktop / frontend check on every PR.tests/previewRuntime.test.ts › rejects an unsigned preview backend before executing it or updating itexpectsbackend.current.state === 'error'. The frontend job runsnpm testonblacksmith-4vcpu-ubuntu-2404, which has no/usr/bin/codesign.Backend.verifyRuntimetherefore fails withENOENT, andconnect()reportsmissing:(Run 38477258761, from PR #1452, whose diff doesn't touch this area.)
The behavior under test is still correct on both platforms: the unsigned preview binary is never executed (no
connection.json), and installing over the bundled API is rejected. Only the status label differs, because Linux has no code-signing tool. The packaged app only runs on macOS, wherecodesignalways exists, so no product code changes.Base:
codex/desktop-mac-preview-20261012. The other desktop UI audit PRs against this base (#1452, #1453, #1454 and later) inherit this red check until this lands.Before / After
flowchart LR subgraph Before["Before"] direction TB B1(["CI: Ubuntu npm test"]):::user --> B2["verifyRuntime: /usr/bin/codesign"]:::code B2 --> B3["ENOENT → state 'missing'"]:::code B3 --> B4["assert state === 'error'"]:::bad B4 --> B5(["Desktop / frontend fails on every PR"]):::bad end subgraph After["After"] direction TB A1(["CI: Ubuntu npm test"]):::user --> A2["verifyRuntime: /usr/bin/codesign"]:::code A2 --> A3["ENOENT → state 'missing'"]:::code A3 --> A4["assert darwin ? 'error' : 'missing'<br/>+ never executed + install rejected"]:::fix A4 --> A5(["Check passes; signer guard still covered"]):::good end classDef user fill:#1f2937,stroke:#93c5fd,color:#f9fafb classDef code fill:#312e81,stroke:#a5b4fc,color:#eef2ff classDef bad fill:#7f1d1d,stroke:#fca5a5,color:#fef2f2 classDef fix fill:#065f46,stroke:#6ee7b7,color:#ecfdf5 classDef good fill:#14532d,stroke:#86efac,color:#f0fdf4Legend: blue = trigger, indigo = unchanged code path, red = defect, green = changed test / fixed outcome.
Validation
The Linux outcome is confirmed by the CI log above. This PR's own frontend check covers it.
Limitations
This is a test-only change with no changelog entry, since nothing user-visible changes.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.